package flex.persistence {
	import avmplus.getQualifiedClassName;

	public class AbstractType {
		protected var name:String;
		public function AbstractType() {
			if(getQualifiedClassName(this) == getQualifiedClassName(AbstractType))
				throw new Error(getQualifiedClassName(AbstractType)+" is Abstract");
		}
		
		public function toString():String {
			return this.name;
		}
		
		public function equals(obj:Object):Boolean {
			if(!obj) return false;
			return this.name == obj.name;
		}
	}
}